import request from '@/utils/request';

export async function query(): Promise<any> {
  return request('/api/users');
}

export async function queryCurrent(): Promise<any> {
  return request('/service/partTimerWb/user/getInfo', {
    method: 'POST',
  });
}

export async function queryReplyCount(pid): Promise<any> {
  return request('/service/partTimerWb/topic/getUnapprovedReplyCount', {
    method: 'POST',
    data: { pid },
  });
}

export async function queryNotices(): Promise<any> {
  return request('/api/notices');
}
